package com.damie.utils;

/**
 * 返回的状态码和说明
 */
public enum  StatusCode {

    SUCCESS(HttpStatus.SUCCESS,"返回成功"),

    ERROR(HttpStatus.ERROR,"服务器错误"),

    NULL_ERROR(HttpStatus.NULL_ERROR,"空指针异常");

    private final int code;

    private final String msg;

    StatusCode(int code, String msg)
    {
        this.code = code;
        this.msg = msg;
    }

    public int getCode()
    {
        return code;
    }

    public String getMsg()
    {
        return msg;
    }
}
